home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Top 200 Programs
/
Top 200 Programs.iso
/
Bob8
/
THOMPSON
/
LIBERTY
/
PRODUCT
/
LB14W.EXE
/
FILES.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-12-02
|
516b
|
16 lines
'the array used by the files command must already exist
dim info$(1, 1)
prompt "Enter a filename to find (example: dos\qbasic.exe)."; fileName$
files "c:\", fileName$, info$(
if val(info$(0, 0)) > 0 then _
notice "file c:\" + fileName$ + " exists" _
else _
notice "file c:\" + fileName$ + " doesn't exist"
'now display a notice reporting an error if there is one
if instr("0123456789", left$(info$(0, 0), 1)) = 0 then _
notice info$(0, 0)